<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/menu'); ?>

    <div class="website webmargin">
        <div class="box">您的位置：
            <a href="/">首页</a><em>&gt;</em>
            <a href="/product.html">墙布系列</a></a><em>&gt;</em>
            <a href="<?php echo "/product/" . $cur_category['id'] . ".html"; ?>"><?php echo $cur_category['category_name']; ?>
                <em>&gt;</em>
                <a href="#"><?php echo $product['title'];?></a>
        </div>
    </div>

    <div class="page_contact">
        <div class="big_pic"><img id="img_show" src="<?php echo $product['imgs'][0]; ?>"></div>
        <div class="pic_list">
            <?php if ($product) : ?>
                <?php foreach ($product['imgs'] as $key => $val) : ?>
                    <a href="javascript:;" class="img_menu <?php if ($key == 0) {
                        echo 'on';
                    } ?>" data-pic="<?php echo $val; ?>"><img src="<?php echo $val; ?>"></a>
                <?php endforeach; ?>
            <?php endif; ?>
        </div>
    </div>
    <script>
        $(function () {
            $(".img_menu").click(function () {
                var img = $(this).attr("data-pic");
                $(".img_menu").removeClass("on");
                $(this).addClass("on");
                $("#img_show").attr("src", img);
            });
        })
    </script>
<?php $this->load->view('common/footer'); ?>